package com.sgb.kjwl.model.entity.user;

import com.google.gson.annotations.SerializedName;
import com.swgk.core.util.StringUtil;

import java.util.List;

public class OrderDetailEntity {

//    2019-9-12 17:13:00 订单详情新增字段
//    "isLoading": 1, // 是否有装卸费
//            "transportPrice": 0, // 运输费
//            "payType": "协商付款", // 付款方式
//    "itemPrice": 212000, // 商品总价格
//    "remarks": "",  // 备注
//            "loadingPrice": 0, // 装卸费
//            "documentary": "跟单人姓名",
//            "isTransport": 1 // 是否有运输费
//    "companyName":"采购商企业", // 采购方名称
//            "companyPhone":"15616163131" // 采购方电话

    @SerializedName("orderNo")
    private String orderNo;

    @SerializedName("orderId")
    private String orderId;

    @SerializedName("shopName")
    private String sellerName;

    @SerializedName(value = "sellerTel", alternate = {"shopPhone"})
    private String sellerTel;

    @SerializedName(value = "status", alternate = {"state"})
    private String status;

    @SerializedName("orderPerson")
    private String orderPerson;

    @SerializedName("totalNum")
    private String totalNum;

    @SerializedName("totalPrice")
    private String totalPrice;

    @SerializedName(value = "products", alternate = {"orderItems"})
    private List<GoodsItemEntity> products;

    @SerializedName("createTime")
    private String time;

    @SerializedName("isLoading")
    private String isLoading;

    @SerializedName("isTransport")
    private String isTransport;

    @SerializedName("transportPrice")
    private String transportPrice;

    @SerializedName("loadingPrice")
    private String loadingPrice;

    @SerializedName("payType")
    private String payType;

    @SerializedName("itemPrice")
    private String itemPrice;

    @SerializedName("remarks")
    private String remarks;

    @SerializedName("documentary")
    private String documentary;

    @SerializedName("companyName")
    private String companyName;

    @SerializedName("companyPhone")
    private String companyPhone;

    //物流信息（卖家在确认发货后填写）卖家可在待收货中编辑
    @SerializedName("logisticsInfo")
    private String logisticsInfo;

    //付款约定（卖家在待接单的订单中编辑，非必填）
    @SerializedName("orderAgreement")
    private String orderAgreement;

    //采购商---收货地址
    @SerializedName("receiveInfo")
    private UserAddressEntity pruchaserAddress;

    //采购商---开票信息
    @SerializedName("invoiceInfo")
    private BankInfoEntity pruchaserInvoice;

    //销售商---收款信息
    @SerializedName("receiptInfo")
    private ReceiveEntity sellerReceive;

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getSellerName() {
        return sellerName;
    }

    public void setSellerName(String sellerName) {
        this.sellerName = sellerName;
    }

    public String getSellerTel() {
        return sellerTel;
    }

    public void setSellerTel(String sellerTel) {
        this.sellerTel = sellerTel;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOrderPerson() {
        return orderPerson;
    }

    public void setOrderPerson(String orderPerson) {
        this.orderPerson = orderPerson;
    }

    public String getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(String totalNum) {
        this.totalNum = totalNum;
    }

    public String getTotalPrice() {
        return "￥" + StringUtil.showPrice(totalPrice);
    }

    public String getConfirmPrice() {
        return totalPrice;
    }

    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getIsLoading() {
        return isLoading;
    }

    public void setIsLoading(String isLoading) {
        this.isLoading = isLoading;
    }

    public String getIsTransport() {
        return isTransport;
    }

    public void setIsTransport(String isTransport) {
        this.isTransport = isTransport;
    }

    public String getTransportPrice() {
        return "￥" + StringUtil.showPrice(transportPrice);
    }

    public void setTransportPrice(String transportPrice) {
        this.transportPrice = transportPrice;
    }

    public String getLoadingPrice() {
        return "￥" + StringUtil.showPrice(loadingPrice);
    }

    public void setLoadingPrice(String loadingPrice) {
        this.loadingPrice = loadingPrice;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getItemPrice() {
        return itemPrice;
    }

    public void setItemPrice(String itemPrice) {
        this.itemPrice = itemPrice;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getDocumentary() {
        return documentary;
    }

    public void setDocumentary(String documentary) {
        this.documentary = documentary;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyPhone() {
        return companyPhone;
    }

    public void setCompanyPhone(String companyPhone) {
        this.companyPhone = companyPhone;
    }

    public List<GoodsItemEntity> getProducts() {
        return products;
    }

    public void setProducts(List<GoodsItemEntity> products) {
        this.products = products;
    }

    public UserAddressEntity getPruchaserAddress() {
        return pruchaserAddress;
    }

    public void setPruchaserAddress(UserAddressEntity pruchaserAddress) {
        this.pruchaserAddress = pruchaserAddress;
    }

    public BankInfoEntity getPruchaserInvoice() {
        return pruchaserInvoice;
    }

    public void setPruchaserInvoice(BankInfoEntity pruchaserInvoice) {
        this.pruchaserInvoice = pruchaserInvoice;
    }

    public ReceiveEntity getSellerReceive() {
        return sellerReceive;
    }

    public void setSellerReceive(ReceiveEntity sellerReceive) {
        this.sellerReceive = sellerReceive;
    }

    public String getLogisticsInfo() {
        return logisticsInfo;
    }

    public void setLogisticsInfo(String logisticsInfo) {
        this.logisticsInfo = logisticsInfo;
    }

    public String getOrderAgreement() {
        return orderAgreement;
    }

    public void setOrderAgreement(String orderAgreement) {
        this.orderAgreement = orderAgreement;
    }

    public class ReceiveEntity {
        //户名，开户行，银行账户
        @SerializedName(value = "bank", alternate = {"bankName"})
        private String bank;
        @SerializedName(value = "accountName", alternate = {"name"})
        private String accountName;
        @SerializedName(value = "accountId", alternate = {"bankNo"})
        private String accountId;

        public String getBank() {
            return bank;
        }

        public void setBank(String bank) {
            this.bank = bank;
        }

        public String getAccountName() {
            return accountName;
        }

        public void setAccountName(String accountName) {
            this.accountName = accountName;
        }

        public String getAccountId() {
            return accountId;
        }

        public void setAccountId(String accountId) {
            this.accountId = accountId;
        }
    }
}
